<?php
/**
 * Application Constant.
 *  
 * @author Nguyen Hai Ha
 * @version 1.0
 */

class Constant {
	//Su dung cho session namespace cua user.
	const SESSION_NAMESPACE = 'Zend_Auth';
	// Dinh nghia default ngon ngu.
	const LANGUAGE_DEFAULT = 'en';
	// Dinh nghia bien de get ngon ngu.
	const LANGUAGE_BASE_URL = "language";
	// Role Administrator.
	const ADMINISTRATOR = 'administrator';
	// Role member.
	const MEMBER = 'member';
	// Role guest.
	const GUEST = 'guest';
	// Role editor.
	const EDITOR = 'editor';
	// Database adapter name.
	const DB_ADAPTER = 'dbAdapter';
	// Item on page of list member.
	const MEMBER_LIST_ITEM = 15;
	// Article administrator list item.
	const ARTICLE_LIST_ITEM = 6;
	// Private message.
	const PRIVATE_MESSAGE_LIST_ITEM = 20;
	// Phan config cho image.
	// Anh lon nhat co the upload.
	const IMAGE_MAX_SIZE = 400;
	// Do rong cua anh.
	const IMAGE_WIDTH = 150;
	// Do cao cua anh.
	const IMAGE_HEIGHT = 100;
	// Loai tien te.
	const MONEY_EXTENDED = "VND";
	// Dat thoi gian mac dinh cho ghi nho nguoi dung.
	const TIME_REMEMBER_USER = 1209600; // 2 weeks
	// Dat so tin cho trang hien thi hang hoa.
	const COMMODITY_LIST_ITEM = 20;
	// Cai dat ten cho cookie.
	const COOKIE_NAME = 'eway';
	// Cai dat do lon cua log file.
	const LOG_FILE_SIZE = 10; // 10MB
	// Ten log file.
	const LOG_FILE_NAME = 'eway_current.log'; 
	// Ten cua su kien user nap tien.
	const USER_PAID = 'paid';
	// So tien user phai tra moi lan them mat hang moi.
	const MONEY_ADD_COMMODITY = 500;
}
?>